package com.qf.swagger1.controller;

import com.qf.swagger1.domain.R;
import com.qf.swagger1.domain.User;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/person")
public class PersonController {

    @GetMapping
    public R findAll(){
        return R.success("persons");
    }

    @PostMapping
    public R add(String pname){
        System.out.println("add:" + pname);

        return R.success("add person success...");
    }
}
